#include <vector>
#include <iostream>
#include <ctime>

using namespace std;
clock_t start, endtime;

int main()
{
    start = clock();

    const int seq_size = 18;
    vector<int> pell_seq(seq_size);

    pell_seq[0] = 1;
    pell_seq[1] = 2;
    for (int i = 2; i < seq_size; i++)
        pell_seq[i] = pell_seq[i - 1] + pell_seq[i - 2];

    for (int i = 0; i < seq_size; i++)
        cout << pell_seq[i] << " ";

    endtime = clock();
    double totaltime = (double)(endtime - start) / CLOCKS_PER_SEC;
    cout << endl << "Total time is " << totaltime << " seconds";

    return 0;
}
